pi = 1
temp = 1
for i in range(1,1000000):
    temp *= (i)/(2*i+1)
    pi += temp
pi*=2
print(pi) 
